package cn.iocoder.yudao.module.agent.controller.admin.brokeragewithdrawrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 代理人佣金提现记录 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class AgentBrokerageWithdrawRecordBaseVO {

    @Schema(description = "代理人会员编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9342")
    @NotNull(message = "代理人会员编号不能为空")
    private Long userId;

    @Schema(description = "金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "13277")
    @NotNull(message = "金额不能为空")
    private Integer price;

    @Schema(description = "手续费", requiredMode = Schema.RequiredMode.REQUIRED, example = "8817")
    @NotNull(message = "手续费不能为空")
    private Integer feePrice;

    @Schema(description = "当前剩余佣金", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "当前剩余佣金不能为空")
    private Integer leftBrokerage;

    @Schema(description = "0:审核中 1:审核通过 2:审核不通过 3:提现成功", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "0:审核中 1:审核通过 2:审核不通过 3:提现成功不能为空")
    private Integer status;

    @Schema(description = "审核驳回原因", example = "不好")
    private String auditReason;

    @Schema(description = "审核时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime auditTime;

}
